package com.muyu.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.muyu.common.core.domain.BaseEntity;
import com.muyu.system.domain.enums.OrderSourceEnum;
import com.muyu.system.domain.enums.ScoreTypeEnum;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 商品评价表
 * </p>
 *
 * @author 作者
 * @since 2025-05-14
 */
@Getter
@Setter
@TableName("goods_evaluation_info")
public class GoodsEvaluationInfo extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 关联用户ID
     */
    @TableField("user_id")
    private Long userId;

    /**
     * 关联产品ID
     */
    @TableField("good_id")
    private Long goodId;

    /**
     * 规格id
     */
    @TableField("sku_id")
    private Long skuId;

    /**
     * 商家id
     */
    @TableField("store_id")
    private Long storeId;

    /**
     * 订单id
     */
    @TableField("order_id")
    private Long orderId;

    /**
     * 订单来源 1商城订单 2书画交易订单
     */
    @TableField("source")
    private OrderSourceEnum source;

    /**
     * 评分 1-5
     */
    @TableField("score")
    private Integer score;

    /**
     * 评价
     */
    @TableField("evaluation")
    private String evaluation;

    /**
     * 图片地址，逗号分割
     */
    @TableField("image")
    private String image;


    /**
     * 是否匿名  1 是  0不是
     */
    @TableField("anonymous")
    private Boolean anonymous;

    /**
     * 点赞数量
     */
    @TableField("thumbs_up")
    private Integer thumbsUp;

    /**
     * 评论数量
     */
    @TableField("comments_number")
    private Integer commentsNumber;


    /**
     * 评分类型
     */
    @TableField("score_type")
    private ScoreTypeEnum scoreType;
}
